package com.ruoyi.weixin.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户地址对象 user_address
 *
 * @author dqianhe
 * @date 2022-04-27
 */
public class UserAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    private String id;

    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    private String delFlag;

    /**
     * 用户编号
     */
    @Excel(name = "用户编号")
    private String userId;

    /**
     * 收货人名字
     */
    @Excel(name = "收货人名字")
    private String userName;

    /**
     * 邮编
     */
    @Excel(name = "邮编")
    private String postalCode;

    /**
     * 省名
     */
    @Excel(name = "省名")
    private String provinceName;

    /**
     * 市名
     */
    @Excel(name = "市名")
    private String cityName;

    /**
     * 区名
     */
    @Excel(name = "区名")
    private String countyName;

    /**
     * 详情地址
     */
    @Excel(name = "详情地址")
    private String detailInfo;

    /**
     * 电话号码
     */
    @Excel(name = "电话号码")
    private String telNum;

    /**
     * 是否默认 1是0否
     */
    @Excel(name = "是否默认 1是0否")
    private String isDefault;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public String getDetailInfo() {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo) {
        this.detailInfo = detailInfo;
    }

    public String getTelNum() {
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("postalCode", getPostalCode())
                .append("provinceName", getProvinceName())
                .append("cityName", getCityName())
                .append("countyName", getCountyName())
                .append("detailInfo", getDetailInfo())
                .append("telNum", getTelNum())
                .append("isDefault", getIsDefault())
                .toString();
    }
}
